package com.example.gateway.designPattern.simpleFactory.gcfs;

import com.example.gateway.designPattern.simpleFactory.Pizza;

/**
 * @ClassName: BjPizzaFactory
 * @Description:
 * @Author: YourName
 * @Date: 2024/12/31
 */

public class LdPizzaFactory extends PizzaFactory {
    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("cheese")) {
            pizza = new LdcPizza();
        }else if (orderType.equals("pepper")) {
            pizza = new LdpPizza();
        }
        return pizza;
    }
}
